############################################################################
# CMakeLists.txt
# author:suka
# create:2020.10.1
############################################################################
#
# - Find the INTELLIGENT_ADJUST include file and library
#
#  INTELLIGENT_ADJUST_FOUND - system has IntelligentAdjust
#  INTELLIGENT_ADJUST_INCLUDE_DIRS - the INTELLIGENT_ADJUST include directory
#  INTELLIGENT_ADJUST_LIBRARIES - The libraries needed to use INTELLIGENT_ADJUST

find_path(INTELLIGENT_ADJUST_INCLUDE_DIRS
	NAMES get_intelligence.h
	PATH_SUFFIXES include
)
if(INTELLIGENT_ADJUST_INCLUDE_DIRS)
	set(HAVE_INTELLIGENT_ADJUST_INTELLIGENT_ADJUST_H 1)
endif()

find_library(INTELLIGENT_ADJUST_LIBRARIES NAMES IntelligentAdjust)


include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(IntelligentAdjust
	DEFAULT_MSG
	INTELLIGENT_ADJUST_INCLUDE_DIRS INTELLIGENT_ADJUST_LIBRARIES HAVE_INTELLIGENT_ADJUST_INTELLIGENT_ADJUST_H
)

mark_as_advanced(INTELLIGENT_ADJUST_INCLUDE_DIRS INTELLIGENT_ADJUST_LIBRARIES HAVE_INTELLIGENT_ADJUST_INTELLIGENT_ADJUST_H)